//
//  BYJsongListModel.m
//  BLDMusics
//
//  Created by 白云杰 on 16/3/17.
//  Copyright © 2016年 李晓丹. All rights reserved.
//

#import "BYJsongListModel.h"
#import "BYJurlListModel.h"
#import "BYJmvListModel.h"

@implementation BYJsongListModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
    if ([key isEqualToString:@"urlList"]) {
        self.urlListArr = [BYJurlListModel modelHandleWithArray:value];
    }
    
    if ([key isEqualToString:@"mvList"]) {
        self.mvListArr = [BYJmvListModel modelHandleWithArray:value];
    }
}

- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"favorites"]) {
        NSInteger count = [value integerValue];
        if (count > 10000) {
            self.favorites = [NSString stringWithFormat:@"%ld万", count / 10000];
        }
    }
}

@end
